Title edition breaks the links #207

Closed
opened 2018-09-08 10:42:01 +00:00 by ffffluffy · 2 comments
ffffluffy commented 2018-09-08 10:42:01 +00:00 (Migrated from github.com)

Currently, if we edit the title, it will also edit the link, so previous links to the article (before it was edited) will be broken. Would it be possible to have a way to prevent this, either by having an option not to change the link when editing, or something else ?

Currently, if we edit the title, it will also edit the link, so previous links to the article (before it was edited) will be broken. Would it be possible to have a way to prevent this, either by having an option not to change the link when editing, or something else ?
elegaanz commented 2018-09-21 17:19:40 +00:00 (Migrated from github.com)

The best solution would be not to update the link when editing, since Mastodon doesn't update it afterwards, see https://github.com/Plume-org/Plume/issues/221#issuecomment-423421097

Edit: we could still update the link if the post is a draft, it won't break anything normally…

The best solution would be not to update the link when editing, since Mastodon doesn't update it afterwards, see https://github.com/Plume-org/Plume/issues/221#issuecomment-423421097 Edit: we could still update the link if the post is a draft, it won't break anything normally…
y6nH commented 2019-12-05 17:09:15 +00:00 (Migrated from github.com)

This bug was closed in a commit tagged 0.3.0-alpha over a year ago, but it still seems to be happening in the 0.3.0 release (fediverse.blog).

STR:

  • Create a post with the title "dogs and cats"
  • Save it as a draft
  • Edit the post, changing its title to "cats and dogs"
  • Save and publish it
  • Try to view the post from Mastodon

The link that federates to Mastodon has the slug "dogs-and-cats", and results in a 404. That's fixed at the time of first saving (draft). The actual article has the slug "cats-and-dogs". That's fixed at the time of publishing.

The federated link available in the API should match the one used in the Plume front-end.

This bug was closed in a commit tagged 0.3.0-alpha over a year ago, but it still seems to be happening in the 0.3.0 release (fediverse.blog). ## STR: - Create a post with the title "dogs and cats" - Save it as a draft - Edit the post, changing its title to "cats and dogs" - Save and publish it - Try to view the post from Mastodon The link that federates to Mastodon has the slug "dogs-and-cats", and results in a 404. That's fixed at the time of first saving (draft). The actual article has the slug "cats-and-dogs". That's fixed at the time of publishing. The federated link available in the API should match the one used in the Plume front-end.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#207
No description provided.