Send thr:in-reply-to as well, for clarity...
This commit is contained in:
parent
922b65d231
commit
b1de90fe08
@ -193,6 +193,13 @@ class Fave extends Managed_DataObject
|
||||
$act->content = sprintf(_('%1$s favorited something by %2$s: %3$s'),
|
||||
$actor->getNickname(), $target->getProfile()->getNickname(),
|
||||
$target->getRendered());
|
||||
$act->context = new ActivityContext();
|
||||
$act->context->replyToID = $target->getUri();
|
||||
try {
|
||||
$act->context->replyToURL = $target->getUrl();
|
||||
} catch (InvalidUrlException $e) {
|
||||
// ok, no replyToURL, i.e. the href="" in <thr:in-reply-to/>
|
||||
}
|
||||
|
||||
$act->actor = $actor->asActivityObject();
|
||||
$act->target = $target->asActivityObject();
|
||||
|
Loading…
Reference in New Issue
Block a user