A developer's journey into seeing their own posts
So, I needed to check my own "Posts and Comments" history in Friendica. I don't know why, but Friendica doesn't offer the "Posts and Comments" tab when the Friendica user is seeing its own profile, the tab only appears for other profiles. From an endpoint perspective, it makes sense: other users's profiles are served under the /contact/#{id} endpoint route, while the oneself profile is served under the /profile/#{screen_name} route, which offers things such as "Personal Notes" and "Scheduled Posts", both private things which aren't supposed to appear for a /contact.
My own "Posts and Comments" could be seen through my "Network" tab. However, due to the ongoing performance issues, the "Network" tab often results in Gateway Timeout (so I often catch myself accessing my Friendica through direct URLs such as my own profile's URL, so I avoid demanding the "Network" tab content from Friendica). So I needed a workaround.
Then I remembered how ActivityPub uses the Finger protocol to serve information about users. "Perhaps it returns a /contact endpoint and/or a numeric user id", I thought. The result from friendica.world/.well-known/we… , however, doesn't contain numbers, just the /profile endpoint. The only "number", under links.[rel="salmon"], is actually an UUID and its href returns 404.
Then I tried to take a look at the Friendica API documentation, then I found about `api/externalprofile/show` which Returns a Contact entity for the provided profile URL, with the parameter profileurl being the full /profile URL. I promptly tried it and it asked for login. After logging in (again, as I was already logged into the same domain), there I got it, my own id, which after being replaced in /contact/#{id}, readily returned my own "Posts and Comments".
Ideally, it shouldn't be so technically complicated to check own's "Posts and comments", but maybe this (checking own's posts) is not something that people usually do.