Active
Project:
Social Content
Version:
7.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2016 at 18:09 UTC
Updated:
8 May 2016 at 13:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
woombo commentedPatch fixing the problem.
Comment #3
woombo commentedComment #4
pere orgaThe query does not check the content type but as far as I can see this is safe. If a node id exists in the social_content_history table it means that a node with that ID was imported, and thereby it must be social media content.
Am I missing something?
Comment #5
woombo commentedHey @Pere, sorry for the delay.
Attached two new files:
#1 - social_content_module_phpstorm.png (Please ignore all comments since I've added them just for testing purposes)
#2 - social_content_module_sequel.png
Comment #6
pere orgaI think the patch is trying to solve the wrong problem.
A node id should not exist in the
social_content_historytable if it is not of a node imported by Social Content module.If that is the case, i.e. if you have
internal_idvalues insocial_content_historythat are from non-imported nodes, then we have a serious bug in Social Content.I could merge this patch to be extra safe when deleting nodes, but IMO we should fix the bug in the first place.