tabsfix
This commit is contained in:
parent
b24ee09ccf
commit
70ad88e868
|
@ -10,7 +10,8 @@
|
|||
|
||||
- add urls to larger avatars
|
||||
|
||||
~LINE 213 $avatar = $profile->getAvatar(AVATAR_STREAM_SIZE);
|
||||
~LINE 213
|
||||
$avatar = $profile->getAvatar(AVATAR_STREAM_SIZE);
|
||||
$twitter_user['profile_image_url'] = ($avatar) ? $avatar->displayUrl() :
|
||||
Avatar::defaultImage(AVATAR_STREAM_SIZE);
|
||||
$avatar = $profile->getAvatar(AVATAR_PROFILE_SIZE);
|
||||
|
@ -26,12 +27,14 @@
|
|||
|
||||
- add the uri-field
|
||||
|
||||
~line 320 $twitter_status['uri'] = $notice->uri;
|
||||
~line 330
|
||||
$twitter_status['uri'] = $notice->uri;
|
||||
|
||||
|
||||
- show if a notices is favorited by auth_user
|
||||
|
||||
~line 345 if (isset($this->auth_user)) {
|
||||
~line 355
|
||||
if (isset($this->auth_user)) {
|
||||
$this_profile = $this->auth_user->getProfile();
|
||||
$twitter_status['favorited'] = $this->auth_user->hasFave($notice);
|
||||
$twitter_status['repeated'] = $this_profile->hasRepeated($notice->id);
|
||||
|
@ -43,7 +46,8 @@
|
|||
|
||||
- show number of admins in group api
|
||||
|
||||
~line 420 $admins = $group->getAdmins();
|
||||
~line 414
|
||||
$admins = $group->getAdmins();
|
||||
$admin_count = 0; while($admins->fetch()) $admin_count++;
|
||||
$twitter_group['admin_count'] = $admin_count;
|
||||
|
||||
|
@ -53,7 +57,8 @@
|
|||
- (but id still needs to be sent and be non-numerical, so I do "?id=foo&uri={uri}")
|
||||
- should be possible to only supply uri get var, but I was lazy... sry
|
||||
|
||||
~line 1565 } else if ($this->arg('uri')) {
|
||||
~line 1565
|
||||
} else if ($this->arg('uri')) {
|
||||
return User_group::staticGet('uri', urldecode($this->arg('uri')));
|
||||
|
||||
|
||||
|
@ -61,7 +66,8 @@
|
|||
|
||||
- add routing for new api actions
|
||||
|
||||
~line 467: $m->connect('api/statuses/favs/:id.json',
|
||||
~line 467:
|
||||
$m->connect('api/statuses/favs/:id.json',
|
||||
array('action' => 'ApiStatusesFavs',
|
||||
'id' => '[0-9]+'));
|
||||
|
||||
|
@ -88,10 +94,10 @@
|
|||
|
||||
- I didn't always get Profile::current() to show me the auth user's profile, so I changed it to the normal $this->auth_user used in other api actions
|
||||
|
||||
~ line 80: if(isset($this->auth_user)) {
|
||||
~ line 80:
|
||||
if(isset($this->auth_user)) {
|
||||
$profile = $this->auth_user->getProfile();
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$profile = null;
|
||||
}
|
||||
|
||||
|
@ -104,7 +110,8 @@
|
|||
- e.g. it did not show notices from people who post to "my colleques at quitter"
|
||||
- changed to return timeline according to which auth user is requesting
|
||||
|
||||
~ line 238 $user_profile = $this->user->getProfile();
|
||||
~ line 238
|
||||
$user_profile = $this->user->getProfile();
|
||||
if(isset($this->auth_user)) {
|
||||
$auth_user_profile = $this->auth_user->getProfile();
|
||||
}
|
||||
|
@ -131,7 +138,8 @@
|
|||
|
||||
- added max_id and since_id
|
||||
|
||||
~line 179 $notice = Notice_tag::getStream(
|
||||
~line 179
|
||||
$notice = Notice_tag::getStream(
|
||||
$this->tag,
|
||||
($this->page - 1) * $this->count,
|
||||
$this->count + 1,
|
||||
|
@ -143,7 +151,8 @@
|
|||
|
||||
- we don't want statuses to shorten if sent through the api
|
||||
|
||||
~ line 290: //$status_shortened = $this->auth_user->shortenlinks($this->status);
|
||||
~ line 290:
|
||||
//$status_shortened = $this->auth_user->shortenlinks($this->status);
|
||||
$status_shortened = $this->status;
|
||||
|
||||
|
||||
|
@ -151,9 +160,10 @@
|
|||
|
||||
- to _not_ shorten urls sent through api, we need to comment out this also
|
||||
|
||||
~ line 352 // if ($user) {
|
||||
~ line 352
|
||||
// if ($user) {
|
||||
// // Use the local user's shortening preferences, if applicable.
|
||||
// $final = $user->shortenLinks($content);
|
||||
/ $final = $user->shortenLinks($content);
|
||||
// } else {
|
||||
// $final = common_shorten_links($content);
|
||||
// }
|
||||
|
|
Loading…
Reference in New Issue
Block a user