add todo
This commit is contained in:
parent
ac73470a17
commit
a90adb8582
|
@ -369,9 +369,9 @@ fn get_like_object_id<Activity>(like_or_dislike: &Activity) -> Result<Url, Lemmy
|
||||||
where
|
where
|
||||||
Activity: ActorAndObjectRefExt,
|
Activity: ActorAndObjectRefExt,
|
||||||
{
|
{
|
||||||
// For backwards compatibility with older Lemmy versions where like.object contains a full
|
// TODO: For backwards compatibility with older Lemmy versions where like.object contains a full
|
||||||
// post/comment. This can be removed after some time, using
|
// post/comment. This can be removed after some time, using
|
||||||
// `activity.oject().as_single_xsd_any_uri()` instead.
|
// `activity.oject().as_single_xsd_any_uri()` instead.
|
||||||
let object = like_or_dislike.object();
|
let object = like_or_dislike.object();
|
||||||
if let Some(xsd_uri) = object.as_single_xsd_any_uri() {
|
if let Some(xsd_uri) = object.as_single_xsd_any_uri() {
|
||||||
Ok(xsd_uri.to_owned())
|
Ok(xsd_uri.to_owned())
|
||||||
|
|
Loading…
Reference in New Issue