diff options
author | Evan Prodromou <evan@status.net> | 2010-03-02 02:54:52 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-03-02 02:54:52 -0500 |
commit | c25fc8a4b51466f13c41efc0565bf15f78f6cb4d (patch) | |
tree | 7ce3fb297b502f5efeeb28a4df2834bc4bedfd24 /lib/atomnoticefeed.php | |
parent | 2c677e0f2d881f0c9f5713fcbc37ad24ef0dab26 (diff) |
Show <activity:subject> and no activity actors for user feed
We only need one author for user feeds: the user themselves. So, show
the user as the activity:subject, and don't repeat the same
activity:actor for every notice unnecessarily.
Diffstat (limited to 'lib/atomnoticefeed.php')
-rw-r--r-- | lib/atomnoticefeed.php | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/atomnoticefeed.php b/lib/atomnoticefeed.php index 3c3556cb9..e4df731fe 100644 --- a/lib/atomnoticefeed.php +++ b/lib/atomnoticefeed.php @@ -107,9 +107,19 @@ class AtomNoticeFeed extends Atom10Feed */ function addEntryFromNotice($notice) { - $this->addEntryRaw($notice->asAtomEntry()); - } + $source = $this->showSource(); + $author = $this->showAuthor(); -} + $this->addEntryRaw($notice->asAtomEntry(false, $source, $author)); + } + function showSource() + { + return true; + } + function showAuthor() + { + return true; + } +} |