forked from GNUsocial/gnu-social
get the subject first if you go to the feed
This commit is contained in:
parent
fc317f8b72
commit
ff2553b9c7
@ -205,18 +205,19 @@ class Activity
|
|||||||
// the surrounding feed.
|
// the surrounding feed.
|
||||||
$this->actor = new ActivityObject($authorEl);
|
$this->actor = new ActivityObject($authorEl);
|
||||||
|
|
||||||
} else if (!empty($feed) && $authorEl = $this->_child($feed, self::AUTHOR,
|
|
||||||
self::ATOM)) {
|
|
||||||
|
|
||||||
// If there's no <atom:author> on the entry, it's safe to assume
|
|
||||||
// the containing feed's authorship info applies.
|
|
||||||
$this->actor = new ActivityObject($authorEl);
|
|
||||||
} else if (!empty($feed) &&
|
} else if (!empty($feed) &&
|
||||||
$subjectEl = $this->_child($feed, self::SUBJECT)) {
|
$subjectEl = $this->_child($feed, self::SUBJECT)) {
|
||||||
|
|
||||||
// Feed subject is used for things like groups.
|
// Feed subject is used for things like groups.
|
||||||
// Should actually possibly not be interpreted as an actor...?
|
// Should actually possibly not be interpreted as an actor...?
|
||||||
$this->actor = new ActivityObject($subjectEl);
|
$this->actor = new ActivityObject($subjectEl);
|
||||||
|
|
||||||
|
} else if (!empty($feed) && $authorEl = $this->_child($feed, self::AUTHOR,
|
||||||
|
self::ATOM)) {
|
||||||
|
|
||||||
|
// If there's no <atom:author> on the entry, it's safe to assume
|
||||||
|
// the containing feed's authorship info applies.
|
||||||
|
$this->actor = new ActivityObject($authorEl);
|
||||||
}
|
}
|
||||||
|
|
||||||
$contextEl = $this->_child($entry, self::CONTEXT);
|
$contextEl = $this->_child($entry, self::CONTEXT);
|
||||||
|
Loading…
Reference in New Issue
Block a user