1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 19:30:21 +02:00

No need for JSON actually, because there's a source column we can use.

This commit is contained in:
Teo Mrnjavac
2013-04-09 19:52:17 +02:00
parent d0d2278e17
commit 5fb6fadfe8

View File

@@ -65,13 +65,7 @@ DatabaseCommand_ShareTrack::exec( DatabaseImpl* dbi )
if ( myDbid != m_recipient || sourceDbid == m_recipient )
return;
//we store the comment field as JSON: { sender: dbid, unlistened: bool }
QVariantMap comment;
comment.insert( "sender", sourceDbid );
comment.insert( "unlistened", true );
QJson::Serializer serializer;
setComment( serializer.serialize( comment ) );
setComment( "true" /*unlistened*/ );
DatabaseCommand_SocialAction::exec( dbi );
}