(
&self,
link: &RepoLink,
parent_topics: &Vec<RepoTopic>,
date: Timestamp,
)
| 62 | } |
| 63 | |
| 64 | fn change( |
| 65 | &self, |
| 66 | link: &RepoLink, |
| 67 | parent_topics: &Vec<RepoTopic>, |
| 68 | date: Timestamp, |
| 69 | ) -> activity::Change { |
| 70 | let mut deleted_link = activity::LinkInfo::from(link); |
| 71 | deleted_link.deleted = true; |
| 72 | |
| 73 | activity::Change::DeleteLink(activity::DeleteLink { |
| 74 | actor_id: self.actor.user_id.to_owned(), |
| 75 | date, |
| 76 | deleted_link, |
| 77 | id: activity::Change::new_id(), |
| 78 | parent_topics: activity::TopicInfoList::from(parent_topics), |
| 79 | }) |
| 80 | } |
| 81 | } |
| 82 | |
| 83 | pub struct UpdateLinkParentTopics { |
no test coverage detected