How to change Social URL in Social App

When i install social (or do a reset) I am asked for the base url of my server. I am using MYNAME.dyndns.org.

When I run the app it properly creates the user as @MYUSER@MYNAME.dyndns.org

However, If i try to send a message to my server on Mastodon, I see that it’s trying to use the localhost url from the Mastodon error message:

When I use the OCC command to check the install It’s clear that it’s using localhost for the server URL

{
“cloud_url”: “https://MYNAME.dyndns.org/”,
“social_url”: “http://localhost/nextcloud/index.php/apps/social/”,
“social_address”: “”,
“service”: 1,
“max_size”: 10,
“access_type”: “all_but”,
“access_list”: “
}

In this case, shouldn’t the social url use the dyndns.org address? Can someone please help me to understand this?

Adding Config.php (without sensitive data)

<?php
$CONFIG = array (
.......SNIP.......
  'trusted_domains' => 
  array (
    0 => 'MYNAME.dyndns.org',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '19.0.1.1',
  'overwrite.cli.url' => 'http://localhost/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
 .......SNIP.......

  'installed' => true,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'app_install_overwrite' => 
  array (
    0 => 'social',
    1 => 'dashboard',
    2 => 'occweb',
    3 => 'issuetemplate',
  ),
.......SNIP.......

);

UPDATE:
I have updated the overwrite.clu.url with the actually URLand it has had no affect on the problem. When I check install with OCC I still get the same social URL as above

Update:

figured out how to change the social url:

sudo -u www-data php ./occ config:app:set --value “https://MYNAME.dyndns.org/nextcloud/index.php/index.php/apps/social/” social social_url

which results in:

  • Your current configuration:
    {
    “cloud_url”: “https://MYNAME.dyndns.org/”,
    “social_url”: “https://MYNAME.dyndns.org/nextcloud/index.php/index.php/apps/social/”,
    “social_address”: “”,
    “service”: 1,
    “max_size”: 10,
    “access_type”: “all_but”,
    “access_list”: “
    }

This allowed me to send a toot from mastodon.social but it was never received by social :frowning:

I have the same problem. Using the occ config:app:set ... command lets me send messages from mastodon.online, but I can’t follow anyone (local or federated) or see toots from any federated account.

1 Like