refactor: rename NoteAction::Quote -> Repost

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-10-04 17:33:05 -04:00
parent 36845c6305
commit 4bb60c6240
3 changed files with 4 additions and 4 deletions

View File

@@ -14,8 +14,8 @@ pub enum NoteAction {
/// User has clicked the quote reply action
Reply(NoteId),
/// User has clicked the quote repost action
Quote(NoteId),
/// User has clicked the repost button
Repost(NoteId),
/// User has clicked a hashtag
Hashtag(String),

View File

@@ -119,7 +119,7 @@ fn execute_note_action(
.open(ndb, note_cache, txn, pool, &kind)
.map(NotesOpenResult::Timeline);
}
NoteAction::Quote(note_id) => {
NoteAction::Repost(note_id) => {
if can_post {
router_action = Some(RouterAction::route_to(Route::quote(note_id)));
} else {

View File

@@ -867,7 +867,7 @@ fn render_note_actionbar(
}
if quote_resp.clicked() {
action = Some(NoteAction::Quote(NoteId::new(*note_id)));
action = Some(NoteAction::Repost(NoteId::new(*note_id)));
}
action = zap_actionbar_button(ui, note_id, note_pubkey, zapper, i18n).or(action);