]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Fix OStatus groups by making Ostatus_profile::localProfile() work for groups
authorJoshua Judson Rosen <rozzin@geekspace.com>
Sun, 23 Nov 2014 22:42:12 +0000 (17:42 -0500)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 24 Nov 2014 11:30:37 +0000 (12:30 +0100)
commit4b875e0fd0f82350362eca23c587312f8934d9d1
treefc49e5b91865b10ec36b9dc3d1e7fec9b6272a17
parentd2e1a8c706aff9fab34dc6269499a7a28a09522b
Fix OStatus groups by making Ostatus_profile::localProfile() work for groups

We need to look up a feed profile for HandleFeedEntryWithProfile events,
regardless of whether they're an OStatus user, group, or something else;
this is the least hairy way of doing that--the alternative being
to keep spreading the same logic all over the calling code.

Theoretically, this change might allow OStatusGroups to be recorded
as the authors of activities if they pass through any authorless
activities; but that's why we have checkAuthorship().
plugins/OStatus/classes/Ostatus_profile.php