diff options
author | Evan Prodromou <evan@status.net> | 2010-02-21 23:08:01 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-21 23:08:01 -0500 |
commit | aab7ce70dc5ed087754b3d4ddc162b76bd330e89 (patch) | |
tree | cc2bab295425ae960074c8a01bc930f15d2d2e66 /plugins/OStatus/lib | |
parent | 17c329ba89f575c7fcbf05522a0cf50db6d6a74a (diff) | |
parent | bd3051b85cdd7a135cac446b13251f739e2c74ac (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
Diffstat (limited to 'plugins/OStatus/lib')
-rw-r--r-- | plugins/OStatus/lib/salmonaction.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/plugins/OStatus/lib/salmonaction.php b/plugins/OStatus/lib/salmonaction.php index 8734223c6..273be588b 100644 --- a/plugins/OStatus/lib/salmonaction.php +++ b/plugins/OStatus/lib/salmonaction.php @@ -205,9 +205,14 @@ class SalmonAction extends Action $options['created'] = common_sql_time($this->act->time); } - return Notice::saveNew($oprofile->profile_id, - $content, - 'ostatus+salmon', - $options); + $saved = Notice::saveNew($oprofile->profile_id, + $content, + 'ostatus+salmon', + $options); + + // Record that this was saved through a validated Salmon source + // @fixme actually do the signature validation! + Ostatus_source::saveNew($saved, $oprofile, 'salmon'); + return $saved; } } |