use original exif_read_data() parameters which were lost in a regression; unset automatic nsfw category generated for Mastodon content warning posts, as people use CW as a spoiler mechanism 99% of the time and flagging inappropriate content 1% of the time.

This commit is contained in:
zotlabs 2018-03-14 14:51:33 -07:00
parent 9d230b1f4c
commit 0905018d3b
2 changed files with 9 additions and 1 deletions

View File

@ -668,6 +668,14 @@ function get_atom_elements($feed, $item) {
} }
$termterm = notags(trim(unxmlify($term))); $termterm = notags(trim(unxmlify($term)));
// Mastodon auto generates an nsfw category tag for any 'content-warning' message.
// Most people use CW and use both summary/content as a spoiler and we honour that
// construct so the post will already be collapsed. The generated tag is almost
// always wrong and even if it isn't we would already be doing the right thing.
if($mastodon && $termterm === 'nsfw')
continue;
if($termterm) { if($termterm) {
$terms[] = array( $terms[] = array(
'otype' => TERM_OBJ_POST, 'otype' => TERM_OBJ_POST,

View File

@ -273,7 +273,7 @@ abstract class photo_driver {
} }
if($f) { if($f) {
return @exif_read_data($f); return @exif_read_data($f,null,true);
} }
return false; return false;