Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
Use current timestamp, use tweet's timestamp as a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
slaninas committed Aug 5, 2022
1 parent a37e8c1 commit c8b86a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/twitter.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use log::{debug, info};

use crate::nostr;
use crate::{nostr, utils};

const DATE_FORMAT_STR: &str = "%Y-%m-%d %H:%M:%S";

Expand All @@ -14,9 +14,9 @@ pub fn get_tweet_event(tweet: &Tweet) -> nostr::EventNonSigned {
let formatted = format!("{} ([source]({}))", tweet.tweet, tweet.link);

nostr::EventNonSigned {
created_at: tweet.timestamp,
created_at: utils::unix_timestamp(),
kind: 1,
tags: vec![],
tags: vec![vec!["tweet_timestamp".to_string(), format!("{}", tweet.timestamp)]],
content: formatted,
}
}
Expand Down

0 comments on commit c8b86a9

Please sign in to comment.