hhmx.de

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mi 18.10.2023 23:45:09

Tried on 2 free installs and can't make work. No errors or anything, but just can't see the sites/users in Mastodon. ActivityPub-plugin support suggested that there maybe something wrong in the setup. I guess so too. Would be great to know what and if it can be fixed. It's free to install a Wordpress-site there and investigate for someone who knows how the plugin works. @pfefferle

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mi 18.10.2023 23:55:59

@pfefferle I'm sure I wont be the last one to ask this about Infinityfree, because it's free hosting with almost everything.

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mo 11.12.2023 17:25:06

@pfefferle I upgraded the site to ifastnet premium hosting and still doesn't work. New adress: kulttuurimarxismi.eu

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Mo 11.12.2023 18:01:53

@bhasic there seems to be still a caching issue.

```
curl "kulttuurimarxismi.eu/things-ar" \
-H 'Accept: application/activity+json'
```

This should return JSON, but it returns HTML.

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Di 12.12.2023 13:09:13

@pfefferle It returns JSON now but still cant see the site in Mastodon.

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Di 12.12.2023 14:49:22

@pfefferle Site is in subdirectory so I added RedirectMatch "^\/\.well-known/(webfinger|nodeinfo|x-nodeinfo2)(.*)$" /blog/.well-known/$1$2
in .htaccess and now webfinger seems to work, but still nothing in Mastodon.

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Di 12.12.2023 14:58:01

@bhasic something with the redirect seems broken, it only redirects me to the blog folder, but I can only see HTML, not JSON.

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Di 12.12.2023 15:29:08

@bhasic it does not seem that your blog is in a subdirectory!?!

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Di 12.12.2023 15:30:04

@pfefferle talouspuolue.com/kulttuurimarxismi/ is the path.

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Di 12.12.2023 15:33:47

@pfefferle domain is kulttuurimarxismi.eu but the site is at talouspuolue.com/kulttuurimarxismi/ as its own wordpress install.

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Di 12.12.2023 15:37:04

@bhasic it doesn't matter in which folder it is in the filesystem... the important part is how the domain is configured. if the site loads under kulttuurimarxismi.eu everything is fine, if it loads under talouspuolue.com/kulttuurimarxismi/ you have to have a redirect at the root of talouspuolue.com that redirects to /kulttuurimarxis

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Di 12.12.2023 15:40:37

@pfefferle OK, removed the line from .htaccess and now webfinger is back at "missing "resource" parameter"

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Di 12.12.2023 15:41:49

@bhasic you can also deinstall the webfinger and nodeinfo plugin. these are optional. after you have deinstalled both, try to deactivate and reactivate the ActivityPub plugin.

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Di 12.12.2023 15:46:11

@pfefferle Now webfinger says: {"code":"rest_missing_callback_param","message":"Parametri tai parametrej\u00e4 puuttuu: resource","data":{"status":400,"params":["resource"]}}

Parameter missing

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Di 12.12.2023 15:49:48

@bhasic it seems that mod_rewrite is not passing the GET params the API endpoint.

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Di 12.12.2023 15:50:50

@bhasic do you use the classic mod_rewrite .htaccess setup of WordPress?

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Di 12.12.2023 15:54:49

@pfefferle There are lines from Really Simple Security, Wordfence and WP Hide & Security Enhancer. WP Hide could be the problem.

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mi 13.12.2023 13:33:36

@pfefferle Uninstalled them all and seems like Really Simple SSL .htaccess line was the problem.

Really Simple SSL LETS ENCRYPT
RewriteRule ^.well-known/(.*)$ - [L]
Really Simple SSL LETS ENCRYPT

Really Simple Security
Options -Indexes
Really Simple Security

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mi 13.12.2023 16:07:49

@pfefferle I got it working except media post types are not shown in Mastodon. Only article posts work.

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mi 13.12.2023 17:18:48

@pfefferle In the settings - supported post types I have media checkbox checked, but my attachment/media posts are not shown.

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Do 14.12.2023 18:11:35

@bhasic I will have a look, but I am glad that it finally works 😍

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Do 14.12.2023 18:18:44

@pfefferle Thanks for your help. Site had problems after migration. All my posts are attachment post type so It would be great to get that working.

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Sa 16.12.2023 21:51:43

@pfefferle Not sure if it matters but i'm using this free theme: wordpress.org/themes/customizr
and childtheme/templates/parts/content/singular/attachment_image_content.php

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mo 18.12.2023 22:42:17

@pfefferle Would be awesome to get a solution for this, because it's like the idea of the site to media be found in Mastodon.

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Mo 18.12.2023 22:44:57

@bhasic what do you use as object-type? Note?

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mo 18.12.2023 22:45:30

@pfefferle Note, but i have tried all options.

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mo 18.12.2023 22:47:18

@pfefferle I peeked at activitypubs settings.php and looked to me that there's only page and post to select.

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Mo 18.12.2023 22:48:15

@bhasic you do not see attachments?

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mo 18.12.2023 22:50:52

@pfefferle nope. Line 211
<?php $support_post_types = \get_option( 'activitypub_support_post_types', array( 'post', 'page' ) ) ? \get_option( 'activitypub_support_post_types', array( 'post', 'page' ) ) : array(); ?>

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Mo 18.12.2023 22:54:36

@bhasic this is only the default. you have to see "Media" in the settings.

(Medien: 1)

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mo 18.12.2023 22:56:26

@pfefferle Of course. Anyway the media checkbox is visible there just like in the screenshot. Selecting it just doesn't make my attachment posts federate.

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Mo 18.12.2023 22:59:42

@bhasic but you have checked and saved it?

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mo 18.12.2023 23:01:15

@pfefferle I have added hundreds of media files after I got articles to show in Mastodon. They are published.
mastodon.social/@woketus@kultt

kulttuurimarxismi.eu/

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Mo 18.12.2023 23:10:28

@bhasic "attachment" uses different hooks 🤦‍♂️

chandra.dev/hooks-inside-wp-in

Have to work on a fix, sorry about that!

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Mo 18.12.2023 23:11:43

@pfefferle No problem, happy to help make the plugin work better.

Matthias Pfefferle

Matthias Pfefferle (@pfefferle@mastodon.social)

Föderation EN Mo 18.12.2023 23:54:49

@bhasic what would you expect as content? Empty?

(the images comes as attachment)

Elon Muksis

Elon Muksis (@bhasic@mastodon.social)

Föderation EN Di 19.12.2023 00:04:05

@pfefferle What attachment post type has. Ttile, media file, (I dont need caption and description, but they should be optional), alt. Everything as optional would be perfect. For me and other MLA-users, MLA's attachment tags and categories would be great.