PastVu / pastvu

PastVu is an online platform for curating, annotating, attributing, and discussing vintage pictures around the world
https://pastvu.com
GNU Affero General Public License v3.0
109 stars 17 forks source link

Backlinks tracking / Отслеживание обратных ссылок #169

Open paul-k-pastvu opened 4 years ago

paul-k-pastvu commented 4 years ago

EN: We need internal tracking of backlinks - so that on each photo it would be indicated where else it was mentioned. Like in Github, for example.

RU: Нужен внутренний трекинг обратных ссылок (backlinks) — чтобы на каждой фотографии было бы указаны где еще она упоминалась. Как в Гитхабе, к примеру.

github-actions[bot] commented 3 years ago

Stale issue message

kabalin commented 1 year ago

This would be better to do together with https://github.com/PastVu/pastvu/issues/239#issuecomment-1218488456 . When link to another photo is added the the comment (news or photo), event for each destination photo mentioned in the comment is triggered. This event can be used:

The data from relation map can be used to output information on the photo page (mockups will be required at the later stages of implementation).

Suggested logic:

paul-k-pastvu commented 1 year ago

(news or photo),

... or user profile

paul-k-pastvu commented 1 year ago

when comment is deleted:

  • check if comment contains links to photos, delete existing relations that belong to the same comment.

Our comments is not deleted really, but marked as "deleted". This is important.

Therefore, relations for deleted comments also should not be deleted, but marked as "deprecated/inactive". If comment was restored, these relations also may be activated.

paul-k-pastvu commented 1 year ago

This logic also should be applicable not for comments only, but also for image descriptions.

kabalin commented 1 year ago

OK, so the relation record (and event) in this case will also contain entity type (comment, user or photo). Similar logic will apply on them too (e.g. when photo is deactivated, active flag in relevant relations records will be updated).