Remote Groups Tips and Tricks

From StatusNet
Jump to: navigation, search

Contents


[edit] Avatars are not displayed

Run:

php plugins/OStatus/scripts/update_ostatus_profiles.php

If you get an error like:

PHP Warning: require_once(/var/www/status/plugins/OStatus/scripts/commandline.inc): 
  failed to open stream: No such file or directory in /var/www/status/plugins/OStatus/scripts/update_ostatus_profiles.php on line 38 
PHP Fatal error: require_once(): Failed opening required '/var/www/status/plugins/OStatus/scripts/commandline.inc' 
  (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/status/plugins/OStatus/scripts/update_ostatus_profiles.php on line 38

Comment out the original define() line, add your own with only two parameters: INSTALLDIR and "/path/to/site":

Example:

define('INSTALLDIR', '/var/www/status/');

See: http://identi.ca/conversation/89539525

[edit] Cannot post to remote groups

First of all, apply merge request 204 (automatically or manually) if you're running StatusNet before v1.2: https://gitorious.org/statusnet/mainline/merge_requests/204

That will make sure you can address _all_ your groups with an exclamation mark/bangtag (!group) rather than just the first 20, sorted pretty arbitrarily per instance.

However - if that doesn't help you - try the following SQL command:

INSERT INTO group_alias(
group_id,
alias
)
SELECT DISTINCTROW id, nickname
FROM user_group ug
INNER JOIN group_member gm ON ug.id = gm.group_id
WHERE NOT EXISTS (
SELECT 1
FROM group_alias ga
WHERE ug.id = ga.group_id
AND ug.nickname = ga.alias
)
AND gm.profile_id =1;

For the SQL stuff, see: http://whird.jpope.org/2011/11/13/remote-statusnet-groups

[edit] Cannot use remote group aliases

See: http://chimo.chromic.org/2012/03/15/aliases-for-remote-statusnet-groups/

Personal tools
Namespaces
Variants
Actions
Navigation
Status.net
Toolbox