# This patch turns hidejournal into unhidejournal.
#
# Apparently people are actually using this, so I updated it for version 0.3.1
#
# To apply the patch, extract the source and run patch -p0 < thisfile
# Then recompile hidejournal and run it as normal.
# Todd Troxell <ttroxell@debian.org>

--- nu/wrong/livejournal/HideJournal.java-old	2005-08-14 16:23:25.901712184 -0400
+++ nu/wrong/livejournal/HideJournal.java	2005-08-14 16:30:51.758931584 -0400
@@ -47,17 +47,16 @@
 		if (l.message != null) {
 			System.out.println(l.message+"\n");
 		}
-		System.out.println("Hiding "+l.name+"'s public entries...");
+		System.out.println("Un-Hiding "+l.name+"'s hidden entries...");
 		
 		/* Get the number of entries every day since the specified time. */
 		DayCount[] entries = LJConnection.getdaycounts(p);
 		for (int i = 0; i < entries.length; i++) {
 			EventBundle[] events = LJConnection.getevents(p, entries[i].day);
 			for (int j = 0; j < events.length; j++) {
-				if (events[j].security.equals("public")) {
-					events[j].security = "usemask";
-					events[j].allowMask = 1;
-					System.out.println("Hiding post dated "+events[j].time.toString());
+				if (events[j].security.equals("usemask")) {
+					events[j].security = "public";
+					System.out.println("UN-Hiding post dated "+events[j].time.toString());
 					LJConnection.editevent(p, events[j]);
 				}
 			}
