This commit is contained in:
Felix Ableitner 2020-12-04 14:16:38 +01:00
parent ac73470a17
commit a90adb8582
1 changed files with 3 additions and 3 deletions

View File

@ -369,9 +369,9 @@ fn get_like_object_id<Activity>(like_or_dislike: &Activity) -> Result<Url, Lemmy
where
Activity: ActorAndObjectRefExt,
{
// For backwards compatibility with older Lemmy versions where like.object contains a full
// post/comment. This can be removed after some time, using
// `activity.oject().as_single_xsd_any_uri()` instead.
// TODO: For backwards compatibility with older Lemmy versions where like.object contains a full
// post/comment. This can be removed after some time, using
// `activity.oject().as_single_xsd_any_uri()` instead.
let object = like_or_dislike.object();
if let Some(xsd_uri) = object.as_single_xsd_any_uri() {
Ok(xsd_uri.to_owned())