Browse Source

use "contacts/<id_contact>" url as subject id, as statusnet and twitter use urls like "domain/<id_user>".

This seem to make StatusNet Desktop client work better.
pull/1/head
Fabio Comuni 9 years ago
parent
commit
655f5c7b9f
2 changed files with 3 additions and 2 deletions
  1. +1
    -0
      include/api.php
  2. +2
    -2
      view/api_timeline_atom.tpl

+ 1
- 0
include/api.php View File

@ -243,6 +243,7 @@
'location' => '', //$uinfo[0]['default-location'],
'profile_image_url' => $uinfo[0]['micro'],
'url' => $uinfo[0]['url'],
'contact_url' => $a->get_baseurl()."/contacts/".$uinfo[0]['cid'],
'protected' => false, #
'friends_count' => $countfriends,
'created_at' => api_date($uinfo[0]['name-date']),


+ 2
- 2
view/api_timeline_atom.tpl View File

@ -32,7 +32,7 @@
<!--Deprecation warning: activity:subject is present only for backward compatibility. It will be removed in the next version of StatusNet.-->
<activity:subject>
<activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
<id>$user.url</id>
<id>$user.contact_url</id>
<title>$user.name</title>
<link rel="alternate" type="text/html" href="$user.url"/>
<link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="$user.profile_image_url"/>
@ -100,7 +100,7 @@
<!--Deprecation warning: activity:actor is present only for backward compatibility. It will be removed in the next version of StatusNet.-->
<activity:actor>
<activity:object-type>http://activitystrea.ms/schema/1.0/person</activity:object-type>
<id>$status.user.url</id>
<id>$status.user.contact_url</id>
<title>$status.user.name</title>
<link rel="alternate" type="text/html" href="$status.user.url"/>
<link rel="avatar" type="image/jpeg" media:width="106" media:height="106" href="$status.user.profile_image_url"/>


Loading…
Cancel
Save